#include <stdio.h>
#include <stdlib.h> /*needed for exit()*/

int main()
{
    char line[81], descrip[10];
    double price;
    FILE *inFile; /*FILE declaration*/

    inFile = fopen("prices.dat", "r");
    if (inFile == NULL)
    {
        printf("\nFailed to open the file.\n");
        exit(1);
    }
    while (fgets(line, 81, inFile) != NULL)
        printf("%s", line);
    fclose(inFile);
    printf("\nThe file has been successfully written.\n");
    return 0;
}